package com.mall_main.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

@Data
public class BuyDTO {
    @NotBlank
    private long uid;
    @NotBlank
    private  long gid;
    @Range(min=1,max = 1000,message = "最少一次性购买1个商品，最多一次性购买1000个商品")
    private int number;
    @NotBlank
    private long sellerId;

}
